import os  
if os.environ.has_key('wlsUserID'):  
    wlsUserID = os.environ['wlsUserID']  
if os.environ.has_key('wlsPassword'):  
    wlsPassword = os.environ['wlsPassword']  
connect(  url='http://localhost:8001', adminServerName='manageserver1')  
shutdown('manageserver1','Server', ignoreSessions='true')  
exit()  
